/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package argtrust.apiexamples;

import argtrust.util.MyListIterator;
import argtrust.util.*;
import java.util.ArrayList;
import java.lang.System;

/**
 *
 * @author Yuqing Tang
 */
public class MyCodeTest {

    public abstract class A {

        void foo() {
            System.out.println("In A::foo");
        }
    }

    public class B extends A {

        void foo() {
            System.out.println("In B::foo");
        }
    }

    public void myTest() {
        A a = new B();
        a.foo();
    }

    public static void main(String[] args) {
        MyCodeTest my_test = new MyCodeTest();
        my_test.myTest();


        ArrayList<Integer> alist = new ArrayList<Integer>();
        alist.add(new Integer(0));
        alist.add(new Integer(1));
        alist.add(new Integer(2));
        alist.add(new Integer(3));

        MyListIterator iter = new MyListIterator(alist, alist.size());

        while (iter.hasPrevious()) {
            System.out.println(iter.previous());
        }
    }
}
